package cn.sylinx.hbatis.ext.proxy.invoker;

import java.util.Map;

public abstract class AbstractCommandInvoker implements CommandInvoker {

	protected String truelyDatasource;
	protected String sql;
	protected Map<String, Object> params;

	public AbstractCommandInvoker(String truelyDatasource, String sql, Map<String, Object> params) {
		this.truelyDatasource = truelyDatasource;
		this.sql = sql;
		this.params = params;
	}

	public String getTruelyDatasource() {
		return truelyDatasource;
	}

	public void setTruelyDatasource(String truelyDatasource) {
		this.truelyDatasource = truelyDatasource;
	}

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

	public Map<String, Object> getParams() {
		return params;
	}

	public void setParams(Map<String, Object> params) {
		this.params = params;
	}

	@Override
	public void releaseResource() {
		this.truelyDatasource = null;
		this.sql = null;
		this.params = null;
	}
	
}
